package com.wanmait.recycle.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.wanmait.recycle.mapper.PraiseArticleMapper;
import com.wanmait.recycle.pojo.PraiseArticle;
import com.wanmait.recycle.service.PraiseArticleService;
import com.wanmait.recycle.util.Pager;

@Service
@Transactional
public class PraiseArticleServiceImpl implements PraiseArticleService {

	@Resource
	private PraiseArticleMapper praiseArticleMapper; 
	
	@Override
	public void insert(PraiseArticle object) {
		// TODO Auto-generated method stub

	}

	@Override
	public void update(PraiseArticle object) {
		// TODO Auto-generated method stub

	}

	@Override
	public void delete(Integer id) {
		// TODO Auto-generated method stub

	}

	@Override
	public void delete(String ids) {
		// TODO Auto-generated method stub

	}

	@Override
	public PraiseArticle findById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<PraiseArticle> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getDataCount() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<PraiseArticle> findAll(Pager pager) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<PraiseArticle> findAll(PraiseArticle object) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getDataCount(PraiseArticle object) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<PraiseArticle> findAll(Pager pager, PraiseArticle object) {
		// TODO Auto-generated method stub
		return null;
	}

	/*批量添加点赞*/
	@Override
	public void insertBatch(List<PraiseArticle> praiseArticleList) {
		praiseArticleMapper.insertBatch(praiseArticleList);
		
	}

	/*批量删除点赞*/
	@Override
	public void deleteBatch(List<PraiseArticle> praiseArticleList) {
		
		praiseArticleMapper.deleteBatch(praiseArticleList);
		
	}

}
